<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta  http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Insert title here</title>
</head>
<body>
<a href="javascript:void(0)" onclick="qqShare('http://sakurac.cn/blog/1577870084710','springMVC执行原理','这篇博客内容不错,一起来看吧!',null,'http://cdn.sakurac.cn/blog1.jpg')">qq分享</a>
----------
<a href="javascript:void(window.open('http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http://sakurac.cn/blog/1577870084710'));" title="分享到QQ空间"><img src="http://imgcache.qq.com/qzonestyle/qzone_app/app_share_v1/qzone_logo.png" alt="" /></a>

</body>

<script type="text/javascript">
    /**
     * qq分享
     * @param url       链接地址 你需要分享的网站 如：www.baidu.com
     * @param desc      描述
     * @param title     标题
     * @param summary   内容
     * @param pics      图片
     */
    function qqShare(url,title,summary,pics){
        var urlPath = "https://connect.qq.com/widget/shareqq/index.html?url="+ encodeURI(url) +
            "&desc=&title=" + title +
            "&summary=" + summary +
            "&pics=" + pics;
        window.open (urlPath, 'qq分享', 'height=637, width=1053, top=195,left=459, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
    }
</script>
</html>
